home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
801_900
/
DISK0808
/
DISK0808.ZIP
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1987-05-18
|
2KB
|
54 lines
echo off
cls
echo THE GENERAL LEDGER
echo installation
echo V01.00
echo (c) Copyright 1985..1987 REMARKABLE ENTERPRISES LTD
echo
if %199==99 goto mispar
if %1==C: goto ok
if %1==c: goto ok
if %1==D: goto ok
if %1==d: goto ok
:mispar
echo Incorrect parameter
echo The RUN line is INSTALL d:
echo where d is the letter corresponding to the hard disk you wish to
echo install THE GENERAL LEDGER on
goto theend
:ok
%1
echo This installation will create a directory called \TGL on the hard disk %1
echo
echo To abort hit CTRL C or CTRL BREAK and terminate the command file if you
echo do not want to continue.
pause
echo Working....
md \tgl >nul
cd \tgl
if not exist system.dbf goto docopy
echo You appear to have The General Ledger Already installed on your Hard disk.
echo
echo This installation will now update your existing system.
echo
echo To abort hit CTRL C or CTRL BREAK and terminate the command file if you
echo do not want to continue.
pause
echo Working...
if exist system.old del system.old
rename system.dbf system.old
if exist environ.old del environ.old
rename environ.dbf environ.old
:docopy
a:
copy a:tgl.exe %1\tgl >nul
copy a:tgl.int %1\tgl >nul
copy a:subinst.bat %1\tgl >nul
copy a:tgl.bat %1\ >nul
md %1\tgl\help
copy a:\help\*.hlp %1\tgl\help >nul
%1
cd \tgl
subinst
:theend